class AI : public STATS {
    public:
        void Drift(OSL_IMAGE *image, int &facing, int id);
        
    private:
};

void AI::Drift(OSL_IMAGE *image, int &facing, int id)
{
    if(facing == FACING_LEFT){
      image->x -= 2;
      if(image->x <= 1 ) facing = FACING_RIGHT;
    }
    
    else if(facing == FACING_RIGHT){
      image->x += 2;
      if(image->x > 460) facing = FACING_LEFT;
    }
}
